package com.lazyfish.superdir.controller;

import com.lazyfish.superdir.entity.Dir;
import com.lazyfish.superdir.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.lazyfish.util.ResultBuild;

@CrossOrigin
@Controller
public class QuestionController {
    @Autowired
    private QuestionService questionService;
    @RequestMapping("/Q_getQuestionList")
    @ResponseBody
    public ResultBuild getQuestionList(){
        return new ResultBuild(200,questionService.getQuestionList());
    }

}
